39 Lecture

CS302

Midterm & Final Term Short Notes

MEMORY

Memory is a fundamental component of a computer system, responsible for storing and retrieving information. It can be broadly classified into two categories: primary memory, which includes RAM and cache, and secondary memory, which includes hard


Important Mcq's
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. What is the primary function of computer memory? A. To store and retrieve information B. To execute computer programs C. To perform arithmetic operations D. To communicate with input/output devices Answer: A Which of the following is an example of primary memory? A. Hard drive B. Solid-state drive C. Cache D. USB flash drive Answer: C Which of the following is an example of secondary memory? A. RAM B. CPU cache C. Optical disc D. L1 cache Answer: C What is the function of cache memory? A. To store frequently used data for faster access B. To store long-term data C. To perform arithmetic operations D. To communicate with input/output devices Answer: A Which type of memory is typically the fastest? A. Hard drive B. Solid-state drive C. RAM D. Optical disc Answer: C What is the purpose of virtual memory? A. To increase the amount of available memory B. To reduce the amount of available memory C. To store data on an external drive D. To increase CPU performance Answer: A Which type of memory is non-volatile? A. RAM B. Cache C. Hard drive D. CPU registers Answer: C What is the purpose of read-only memory (ROM)? A. To store the operating system B. To store user data C. To store frequently accessed data D. To store permanent instructions Answer: D What is the capacity of a typical hard drive? A. 1 TB B. 100 GB C. 500 MB D. 10 MB Answer: A Which type of memory is used to temporarily store data for the CPU? A. Cache B. RAM C. Hard drive D. Solid-state drive Answer: B



Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. What is the difference between primary memory and secondary memory? Answer: Primary memory is volatile and used for storing data temporarily, while secondary memory is non-volatile and used for storing data permanently. What is the function of cache memory? Answer: Cache memory is used to store frequently accessed data for faster access by the CPU. What is virtual memory and how does it work? Answer: Virtual memory is a technique used by the operating system to increase the amount of available memory by temporarily transferring data from RAM to the hard drive. This allows the system to run more programs or larger programs than the available physical memory would allow. How is data stored on a hard drive? Answer: Data is stored on a hard drive using magnetic disks that are divided into tracks and sectors. What is RAM and why is it important? Answer: RAM (Random Access Memory) is primary memory that is used for storing data temporarily. It is important because it allows the CPU to access data quickly, which can improve system performance. What is the purpose of ROM? Answer: The purpose of ROM (Read-Only Memory) is to store permanent instructions that cannot be changed, such as the computer's BIOS. What is the difference between a hard drive and a solid-state drive? Answer: A hard drive uses magnetic disks to store data, while a solid-state drive uses flash memory. What is the maximum amount of memory that a 32-bit operating system can address? Answer: A 32-bit operating system can address up to 4GB of memory. How does a CPU cache work? Answer: A CPU cache stores frequently accessed data for faster access by the CPU. It works by storing copies of data that is likely to be accessed again in the near future. What is the role of memory in computer performance? Answer: Memory plays a crucial role in computer performance by allowing the CPU to access data quickly, which can improve the speed and efficiency of running programs and performing tasks.

Memory is a crucial component of a computer system, responsible for storing and retrieving data. It can be classified into two main categories: primary memory and secondary memory. Primary memory includes Random Access Memory (RAM) and cache memory, while secondary memory includes hard drives, solid-state drives, and other external storage devices. RAM is volatile memory that is used for storing data temporarily. It is accessed directly by the CPU and allows the computer to access data quickly, which can improve system performance. Cache memory is a type of high-speed memory that stores frequently accessed data for faster access by the CPU. Secondary memory, on the other hand, is non-volatile and is used for storing data permanently. Hard drives use magnetic disks to store data, while solid-state drives use flash memory. Secondary memory is typically slower than primary memory, but it can store much larger amounts of data. Virtual memory is a technique used by the operating system to increase the amount of available memory. It temporarily transfers data from RAM to the hard drive, which allows the system to run more programs or larger programs than the available physical memory would allow. Read-only memory (ROM) is another type of memory that is used for storing permanent instructions that cannot be changed, such as the computer's BIOS. ROM is non-volatile and is accessed by the CPU during startup. In summary, memory is a critical component of a computer system that allows the CPU to access data quickly and efficiently. Primary memory includes RAM and cache memory, while secondary memory includes hard drives, solid-state drives, and other external storage devices. Virtual memory and ROM are also important types of memory used in computer systems.